﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="ViewHFVariableDetails.aspx.cs" Inherits="Admin_home_refinance_ViewHFVariableDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="contents">
        <table width="100%" cellpadding="3" cellspacing="0" border="0">
            <tr>
                <td>
                    <h1>View Home Refinance Variables</h1>
                </td>
            </tr>
            <tr>
                <td align="right" valign="top" height="30">Select Provider Company Name
                    <asp:DropDownList ID="ddlProviderCompanyName" runat="server" 
                        AutoPostBack="true">
                    </asp:DropDownList>
                    <asp:Button ID="btnAddNewHFVariable" runat="server" 
                        onclick="btnAddNewHFVariable_Click" Text="Add New" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="grvHFVariable" runat="server" AutoGenerateColumns="False" DataKeyNames="HFPackageId" DataSourceID="sqlDsHFVariable" 
                         Cellspacing="3" CellPadding="3" Width="100%" CssClass="admin_gridstyle" GridLines="None" onselectedindexchanged="grvHFVariable_SelectedIndexChanged">
                        <Columns>
                            <asp:BoundField DataField="HFVariableId" HeaderText="HFVariableId" 
                                InsertVisible="False" ReadOnly="True" SortExpression="HFVariableId" 
                                Visible="False" />
                            <asp:BoundField DataField="HFPackageId" HeaderText="HFPackageId" 
                                SortExpression="HFPackageId" Visible="False" />
                            <asp:BoundField DataField="HFProviderId" HeaderText="HFProviderId" 
                                SortExpression="HFProviderId" Visible="False" />
                            <asp:BoundField DataField="ProductName" HeaderText="ProductName" 
                                SortExpression="ProductName" />
                            <asp:BoundField DataField="PropertyTypeName" HeaderText="Property Type" 
                                SortExpression="PropertyTypeName" />
                            <asp:BoundField DataField="PropertyType" HeaderText="PropertyType" 
                                SortExpression="PropertyType" Visible="False" />
                            <asp:BoundField DataField="LoanPurpose" HeaderText="LoanPurpose" 
                                SortExpression="LoanPurpose" Visible="False" />
                            <asp:BoundField DataField="InterestRateType" HeaderText="InterestRateType" 
                                SortExpression="InterestRateType" Visible="False" />
                            <asp:CheckBoxField DataField="Status" HeaderText="Status" 
                                SortExpression="Status" />
                            <asp:BoundField DataField="RefCEUserId" HeaderText="RefCEUserId" 
                                SortExpression="RefCEUserId" Visible="False" />
                            <asp:BoundField DataField="rowguid" HeaderText="rowguid" 
                                SortExpression="rowguid" Visible="False" />
                            <asp:BoundField DataField="CreatedDate" HeaderText="CreatedDate" 
                                SortExpression="CreatedDate" Visible="False" />
                            <asp:BoundField DataField="ModifiedDate" HeaderText="ModifiedDate" 
                                SortExpression="ModifiedDate" />
                            <asp:CommandField ShowSelectButton="True" SelectText="View Details" />
                        </Columns>
                        <FooterStyle />
                        <PagerStyle />
                        <SelectedRowStyle />
                        <HeaderStyle CssClass="admin_gridheader" />
                        <EditRowStyle />
                        <AlternatingRowStyle CssClass="admin_gridodd" />
                        <RowStyle CssClass="admin_grideven" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="sqlDsHFVariable" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:CX_DBConnectionString %>" 
                        SelectCommand="sprocHFVariableDetailsSelectItemListByProvider" 
                        SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="ddlProviderCompanyName" Name="HFProviderId" 
                                PropertyName="SelectedValue" Type="Int64" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

